source 'git@code.byted.org:wusizhen.arch/ios_frameworks.git'
source 'git@code.byted.org:TTVideo/ttvideo-pods.git'
source 'git@code.byted.org:TTIOS/tt_pods_specs.git'
source 'git@code.byted.org:ugc/UGCSpecs.git'

target 'Demo_Example' do
  pod 'BDTFactoryConfigurator', '0.1.0.1'
  pod 'TTVTLIndexPathTools', '0.4.4.1'
  pod 'TTPersistence', '0.2.3.1'
  pod 'Protobuf', '3.0.1-ttv.1'
  pod 'TTReachability', '0.1.8.1'
  pod 'TTSparkRescue','2.3.1.1'
  pod 'TTRoute','0.2.25.1'
  pod 'Demo',:path => '../'
end
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] ||= 'NO'
        end
    end
    cmd="
    dir=\"`pwd`/Pods/Headers/Public\"
    cd $dir
    for pod in `ls -1`
        do
            cd $pod
            inner=`ls -1`
            if [[ \"$pod\" == \"$inner\" ]] && [[ \"$pod\" != \"TTRoute\" ]]
                then
                mv $inner/* ./
                rm -rf $inner
                for file in `ls -1`
                    do
                        followPath=`ls -l \"$file\" | awk -F ' ../' '{print $2}'`
                        ln -fs \"$followPath\" \"$file\"
                        done
                        fi
                        cd $dir
                        done
                        "
                        system(cmd)
                    end
